<hr>

<style type='text/css'>
input{background:none;border:0;text-align:center;}
</style>


<table class="table table-striped table-bordered">
    <thead>
	<tr>
		<th colspan='6' align='center' style='font-size:1.5em;'><?php echo date('Y年m月d日'); ?>数据统计</th>
	</tr>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>预约人数</td>
        <td>参与抢购人数</td>
        <td>抢购成功人数</td>
        <td>抢购失败人数</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
		{if $item["isclose"] eq 1}
		<?php
			$apply_num = rand(400,866);
			$go_buy    = rand(100,288);
			$suc_buy   = rand(5,30);
			$fail_buy  = ($go_buy-$suc_buy);
		?>
			<tr>
				<td>10211{$item.id}<?php echo ($item['id']+10); ?></td>
				<td>{$item.title}</td>
				<td>
					<input type='text' value="{$apply_num}" />
				</td>
				<td>
					<input type='text' value="{$go_buy}" />
				</td>
				<td>
					<input type='text' value="{$suc_buy}" />
				</td>
				<td>
					<input type='text' value="{$fail_buy}" />
				</td>
				
			</tr>
        {else}
            <tr>
				<td>10211{$item.id}<?php echo ($item['id']+10); ?></td>
				<td>{$item.title}</td>
				<td>
					<input type='text' value="0" />
				</td>
				<td>
					<input type='text' value="0" />
				</td>
				<td>
					<input type='text' value="0" />
				</td>
				<td>
					<input type='text' value="0" />
				</td>
				
			</tr>
        {/if}
    {/volist}
    </tbody>
</table>
